#ifndef _DBHELPER_H_
#define _DBHELPER_H_

#include <iostream>

#include "include\mysql.h"	
#pragma comment(lib, "libmysql.lib")

class DBhelper
{
public:
	~DBhelper();

	static DBhelper* getIt();

	void writeToDB(unsigned long long tick, int tag, int value, unsigned char* devId);

	bool init();

private:
	DBhelper();

private:
	static DBhelper* s_head;

	MYSQL* pMySql;

	bool istrue;
};

#endif // !_DBHELPER_H_
